const KEY = 'user_info'
const userKEY = 'user_data_info'
export const getUserToken = () => {
  return JSON.parse(localStorage.getItem(KEY))
}
export const setUserToken = (data) => {
  return localStorage.setItem(KEY, JSON.stringify(data))
}
export const removeUserToken = () => {
  return localStorage.removeItem(KEY)
}

export const getUserData = () => {
  return JSON.parse(localStorage.getItem(userKEY))
}
export const setUserData = (data) => {
  return localStorage.setItem(userKEY, JSON.stringify(data))
}
export const removeUserData = () => {
  return localStorage.removeItem(userKEY)
}
